package com.evl.common.persistence.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.evl.common.persistence.model.TrainOrder;
import com.evl.common.persistence.model.TrainTicket;

/**
 * <p>
  * 车票信息 Mapper 接口
 * </p>
 *
 * @author weijunlong
 * @since 2017-06-22
 */
public interface TrainTicketMapper extends BaseMapper<TrainTicket> {
	
	public Integer insertList(List<TrainTicket> trainTickets);
	
	public List<TrainTicket> searchTickets(List<TrainOrder> trainOrder);
	
	public List<TrainTicket> findOrderTicketList(@Param("orderId")String orderId);
	
	public Integer invalidTickets(List<TrainOrder> TrainOrder);
	
	public Integer updateTicketsStatusById(TrainTicket trainTicket);
}